package com.ctcemti.mdm.project.sys.dao;

import com.ctcemti.mdm.project.sys.entity.InfDisciplines;
import com.ctcemti.mdm.project.sys.entity.InfDisciplines;
import org.apache.ibatis.annotations.Mapper;
import tk.mybatis.mapper.common.IdsMapper;

import java.util.List;

/**
 * @ClassName InfDisciplinesMapper
 * @Description 专业领域控制层
 * @Author pzw
 * @Date 11:20 2019/7/16
 * @Version V1.0
 **/
@Mapper
public interface InfDisciplinesMapper extends tk.mybatis.mapper.common.Mapper<InfDisciplines>,IdsMapper<InfDisciplines>{


    int update(InfDisciplines infDisciplines);

    /**
     * @Description 级联删除
     * @Author pzw
     * @Date 11:20 2019/7/16
     * @Version V1.0
     **/
    int deleteToCascade(Integer[] ids);

    /**
     * @Description 二级树节点查询
     * @Author pzw
     * @Date 11:20 2019/7/16
     * @Version V1.0
     **/
    List<InfDisciplines> selectAllInfDisciplinesByTree(InfDisciplines infDisciplines);

    /**
     * @Description 查询是否有ebs树关联
     * @Author pzw
     * @Date 11:20 2019/7/16
     * @Version V1.0
     **/
    int hasEBSTree(Integer[] ids);
}